enum Api {
  PostInformationUpdateApply = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostInfo_Applay',

  // 样机查询
  PostDoorVisitInfo = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostDoorVirst_Info',
  // 分类汇总
  PostDealerVisitList = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostDealerVisitList',
  // 走访品牌查询产品
  PostDoorVisitBrandProductList = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostDoorVirst_BrandToProductSelect',

  PostInitInformationUpdateDetail = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostInit_InfoUpdateDetail',

  PostDoorPhotoUpdateApply = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostDoorPhoto_Applay',

  // 加载门头费用申请
  PostInitDoorMoneyApply = '/Api/MF_ManagerFront/MF_Store_Design_Apply/PostInit_DoorMoneyApply',

  // 加载专卖店费用申请
  PostInitStoreRenovationApply = '/Api/MF_ManagerFront/MF_Store_Design_Apply/PostInit_StoreRenovationApply',

  // 门头费用申请
  PostDoorMoneyApply = '/Api/MF_ManagerFront/MF_Store_Design_Apply/PostDoorMoneyApply',

  // 专卖店费用申请
  PostStoreRenovationApply = '/Api/MF_ManagerFront/MF_Store_Design_Apply/PostStoreRenovationApply',

  // 加载设计申请
  PostInitDesignApply = '/Api/MF_ManagerFront/MF_Store_Design_Apply/PostStore_Design_ApplyDetail',

  // 提交 设计（其他设计/门头/专卖店） 申请
  PostDesignApply = '/Api/MF_ManagerFront/MF_Store_Design_Apply/PostStore_Design_Apply',

  // 提交 其他设计(验收进入)+门头协议(盖章协议回传进入)+专卖店协议(盖章协议回传进入) 三大协议的提交
  PostAgreementSubmit = 'Api/MF_ManagerFront/MF_Store_Design_Apply/PostAgreementSubmit',

  // 模块样机/户外/奖牌 的申请页面之前的 申请按钮 掉用这个接口看是否能够申请
  PostModuleApplyIsOk = '/Api/MF_ManagerFront/MF_Module/PostApplyIsOk',

  // 提交 模块样机 申请
  PostModuleApply = '/Api/MF_ManagerFront/MF_Module/PostModule_Apply',

  // 提交 户外套装 申请
  PostOutdoorApply = '/Api/MF_ManagerFront/MF_OutdoorSuits/PostOutdoorSuits_Apply',

  // 提交 奖牌 申请
  PostMedalsApply = '/Api/MF_ManagerFront/MF_Medals/PostMedals_Apply',

  // 提交 模块样机 验收
  PostModuleAcceptanceApply = '/Api/MF_ManagerFront/MF_Module/PostModule_Check',

  // 提交 奖牌 验收
  PostMedalsAcceptanceApply = '/Api/MF_ManagerFront/MF_Medals/PostModule_Check',

  // 提交 户外套装 验收
  PostOutdoorAcceptanceApply = '/Api/MF_ManagerFront/MF_OutdoorSuits/PostOutdoorSuits_Check',

  // 渠道变更调整走访信息
  PostDealerApplyForVisitList = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostDealerApplyForVisitList',

  // 变动调整样机情况加载
  PostDealerApplyForVisitSell = '/Api/MF_ManagerFront/MF_Dealer_Adjustment/PostDealerApplyFor_Visit_Sell',

  // 经销商基础信息
  GetDelaerBasicInfo = '/Api/MF_ManagerFront/MF_Flagship_Specialty_Store/GerDealerBasicInfo',

  // 精品店详细
  GetFlagshipStoreDetail = '/Api/MF_ManagerFront/MF_Flagship_Specialty_Store/Post_Flagship_Specialty_StoreDetail',

  // 精品店申请
  PostFlagshipStoreApply = '/Api/MF_ManagerFront/MF_Flagship_Specialty_Store/Post_Flagship_Specialty_Store_Apply',

  // 精品店加载经销商信息
  PostFlagshopDealerInfo = '/Api/MF_ManagerFront/MF_Flagship_Specialty_Store/Post_DealerBasicInfo',

  // 旗舰店设计/非旗舰店设计 详细：
  PostFlagshipStoreDesignDetail = '/Api/MF_ManagerFront/MF_Store_Design_Apply/PostFlagshipStoreDetail',

  // 旗舰店设计/非旗舰店设计 申请：
  PostFlagshipStoreDesignApply = 'Api/MF_ManagerFront/MF_Store_Design_Apply/Post_SDA_FS_Apply',

  // 旗舰店设计/非旗舰店设计 审核：
  PostFlagshipStoreDesignAudit = 'Api/MF_ManagerFront/MF_Store_Design_Apply/SDA_FS_Audit'
}

export function useApplyApi(vm) {
  const getInitInformationUpdateDetail = (params = {}) => {
    return vm.$u.post(Api.PostInitInformationUpdateDetail, params);
  };

  const updateInformationApply = (params = {}) => {
    return vm.$u.post(Api.PostInformationUpdateApply, params);
  };

  const updateDoorPhotoApply = (params = {}) => {
    return vm.$u.post(Api.PostDoorPhotoUpdateApply, params);
  };

  const getInitDoorMoneyApply = (params = {}) => {
    return vm.$u.post(Api.PostInitDoorMoneyApply, params);
  };

  const saveDoorMoneyApply = (params = {}) => {
    return vm.$u.post(Api.PostDoorMoneyApply, params);
  };

  const getInitStoreRenovationApply = (params = {}) => {
    return vm.$u.post(Api.PostInitStoreRenovationApply, params);
  };

  const saveStoreRenovationApply = (params = {}) => {
    return vm.$u.post(Api.PostStoreRenovationApply, params);
  };

  const getInitDesignApply = (params = {}) => {
    return vm.$u.post(Api.PostInitDesignApply, params);
  };

  const saveDesignApply = (params = {}) => {
    return vm.$u.post(Api.PostDesignApply, params);
  };

  const submitAgreement = (params = {}) => {
    return vm.$u.post(Api.PostAgreementSubmit, params);
  };

  const moduleApplyCheck = (params = {}) => {
    return vm.$u.post(Api.PostModuleApplyIsOk, params);
  };

  const saveModuleApply = (params = {}) => {
    return vm.$u.post(Api.PostModuleApply, params);
  };

  const saveOutdoorApply = (params = {}) => {
    return vm.$u.post(Api.PostOutdoorApply, params);
  };

  const saveMedalsApply = (params = {}) => {
    return vm.$u.post(Api.PostMedalsApply, params);
  };

  const saveModuleAcceptanceApply = (params = {}) => {
    return vm.$u.post(Api.PostModuleAcceptanceApply, params);
  };

  const saveOutdoorAcceptanceApply = (params = {}) => {
    return vm.$u.post(Api.PostOutdoorAcceptanceApply, params);
  };

  const saveMedalsAcceptanceApply = (params = {}) => {
    return vm.$u.post(Api.PostMedalsAcceptanceApply, params);
  };

  const getDoorVisitInfo = (params: {}) => {
    return vm.$u.post(Api.PostDoorVisitInfo, params);
  };

  const getDealerVisitList = (params: {}) => {
    return vm.$u.post(Api.PostDealerVisitList, params);
  };

  const getDoorVisitBrandProductList = (params: {}) => {
    return vm.$u.post(Api.PostDoorVisitBrandProductList, params);
  };

  const getDealerApplyVisitList = (params: {}) => {
    return vm.$u.post(Api.PostDealerApplyForVisitList, params);
  };

  const getDealerApplyVisitSell = (params: {}) => {
    return vm.$u.post(Api.PostDealerApplyForVisitSell, params);
  };

  const getDealerBasicInfo = (params: {}) => {
    return vm.$u.post(Api.GetDelaerBasicInfo, params);
  };

  const getFlagshipStoreDetail = (params: {}) => {
    return vm.$u.post(Api.GetFlagshipStoreDetail, params);
  };

  const flagshipStoreApply = (params: {}) => {
    return vm.$u.post(Api.PostFlagshipStoreApply, params);
  };

  const getFlagshipDealerInfo = (params: {}) => {
    return vm.$u.post(Api.PostFlagshopDealerInfo, params);
  };

  const getFlagshipStoreDesignDetail = (params: {}) => {
    return vm.$u.post(Api.PostFlagshipStoreDesignDetail, params);
  };

  const flagshipStoreDesignApply = (params: {}) => {
    return vm.$u.post(Api.PostFlagshipStoreDesignApply, params);
  };

  const flagshipStoreDesignAudit = (params: {}) => {
    return vm.$u.post(Api.PostFlagshipStoreDesignAudit, params);
  };

  return {
    getInitInformationUpdateDetail,
    updateInformationApply,
    updateDoorPhotoApply,
    getInitDoorMoneyApply,
    saveDoorMoneyApply,
    getInitStoreRenovationApply,
    saveStoreRenovationApply,
    getInitDesignApply,
    saveDesignApply,
    submitAgreement,
    moduleApplyCheck,
    saveModuleApply,
    saveOutdoorApply,
    saveMedalsApply,
    saveModuleAcceptanceApply,
    saveOutdoorAcceptanceApply,
    saveMedalsAcceptanceApply,

    getDoorVisitInfo,
    getDealerVisitList,
    getDoorVisitBrandProductList,

    getDealerApplyVisitSell,
    getDealerApplyVisitList,

    getDealerBasicInfo,
    getFlagshipStoreDetail,

    flagshipStoreApply,

    getFlagshipDealerInfo,

    getFlagshipStoreDesignDetail,
    flagshipStoreDesignApply,
    flagshipStoreDesignAudit
  };
}
